Skip to content

bpo-28626: rearrange discussion of output formatting to encourage f-strings#6036

Merged
akuchling merged 1 commit into
python:masterfrom
akuchling:issue28626
Jul 7, 2018
Merged

bpo-28626: rearrange discussion of output formatting to encourage f-strings#6036
akuchling merged 1 commit into
python:masterfrom
akuchling:issue28626

Conversation

@akuchling

@akuchling akuchling commented Mar 9, 2018

Copy link
Copy Markdown
Contributor

Could be backported to 3.7 and 3.6 as well.

https://bugs.python.org/issue28626

@nceder nceder left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this improves things in general, as well as adding explanation of f-strings.

@nceder

nceder commented May 14, 2018

Copy link
Copy Markdown
Contributor

CC @vstinner

@akuchling

Copy link
Copy Markdown
Contributor Author

Shall I go ahead and merge this?

@vstinner

vstinner commented Jun 4, 2018

Copy link
Copy Markdown
Member

I'm really sorry, I told @nceder that I will review this PR. I read it, but I'm not confortable to approve it. I'm not used to write documentation.

@akuchling: If you are confident, sure, please go ahead :-)

@akuchling akuchling merged commit ced350b into python:master Jul 7, 2018
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @akuchling for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@bedevere-bot

Copy link
Copy Markdown

@akuchling: Please replace # with GH- in the commit message next time. Thanks!

@bedevere-bot

Copy link
Copy Markdown

GH-8174 is a backport of this pull request to the 3.7 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jul 7, 2018
…trings (pythonGH-6036)

The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings.

This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().
(cherry picked from commit ced350b)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
miss-islington added a commit that referenced this pull request Jul 9, 2018
…trings (GH-6036)

The 'output formatting' section of the tutorial talks a lot about manual formatting with things like .rjust() and .zfill(), with only a passing reference to 3.6's new f-strings.

This doesn't drop all of the old material, but it does rearrange the topics into a more modern order: f-strings first, discussing formatting specifiers a bit; then calling .format(); finally manual formatting with .ljust().
(cherry picked from commit ced350b)

Co-authored-by: Andrew Kuchling <amk@amk.ca>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants